'use strict';
angular.module('stmms')
.factory('MarkerTask', ['$resource',function ($resource) {
	
	return $resource('/api/markers/:markerId/tasks', {markerId:'@markerId'},
    {
        'removeTasks': { 
        	method:'DELETE',
        	isArray:true,
        	params:{
        		taskId:'@taskId'
        	}
        },
        'createTasks':{
        	method:'POST',
        	isArray:true
        }
    });
}])
.factory('Task', ['$resource',function ($resource) {
    
    return $resource('/api/tasks/:taskId', {taskId:'@taskId'});
}])